package clinic.ms.entity;

import lombok.Data;

@Data
public class Admin {
    private String userName;
    private String password;
    private String realName;
    private char userSex;      // f-女 m-男
    private String userPhone;
    private String userRemarks;

    public Admin(String userName,String password,String realName,char userSex,String userPhone,String userRemarks){
        this.userName = userName;
        this.password = password;
        this.realName = realName;
        this.userSex = userSex;
        this.userPhone = userPhone;
        this.userRemarks = userRemarks;
    }


    public Admin(){
        super();
    }

    public String getUserSex(){
        if(this.userSex == 'f')
            return "女";
        else return "男";
    }
}
